from  fixture import *
import pytest,os

if __name__ == '__main__':
    pytest.main(['test.py','--clean-alluredir','--alluredir=./report'])
    os.system('allure generate ./report -o ./html --clean')
    pytest.main(['test.py', '--html=index.html'])
    email(['log.txt','index.html'])